package org.kev.transit;


public class TransitConf {


	/** list of  TransitStopData objects **/
	
	/* current settings */
	
	public static String url = "http://10.1.1.2/php/transit";
	protected static String system = "SFC";
	protected static String currentRoute="";
	protected static  String currentRouteType="";
	protected static  String currentDirection="";
	protected static  String currentStop="";
	protected static  String currentTime="";
	protected static  double currentLat=0.0F;
	protected static  double currentLon=0.0F;
	protected static  Throwable error=null;

	protected static int progress=0;

	public static String currentRouteId="";

	public static String currentRouteTypeId="";

	public static String currentDirectionId="";

	public static String currentStopId="";
	
	
	private TransitConf() {
	}

	
	/*public static TransitConf getInstance() {
		if (mRef == null) {
			mRef = new TransitConf();	
		}
		mRef.loadData();
		return mRef;
	}
*/
	
	

	public static String toXML(){
		String xml="<TransitConf>\n"+
		"\t<url>"+url+"</url>\n"+
		"\t<system>"+system+"</system>\n"+
		"\t<currentRoute>"+currentRoute+"</currentRoute>\n"+
		"\t<currentRouteId>"+currentRouteId+"</currentRouteId>\n"+
		"\t<currentRouteType>"+currentRouteType+"</currentRouteType>\n"+
		"\t<currentRouteTypeId>"+currentRouteTypeId+"</currentRouteTypeId>\n"+
		"\t<currentRouteType>"+currentRouteType+"</currentRouteType>\n"+
		"\t<currentRouteTypeId>"+currentRouteType+"</currentRouteTypeId>\n"+
		"\t<currentStop>"+currentStop+"</currentStop>\n"+
		"\t<currentStopId>"+currentStopId+"</currentStopId>\n"+
		"\t<currentTime>"+currentTime+"</currentTime>\n"+
		"\t<currentLat>"+currentLat+"</currentLat>\n"+
		"\t<currentLong>"+currentLon+"</currentLong>\n"+
		"</TransitConf>";
		return xml;
	}

}